

void DrawCircle2D(float x, float y, float r, bool filled)
{
	if( filled )
		glBegin(GL_POLYGON);
	else
		glBegin(GL_LINE_STRIP);
	for (int i = 0; i < 18; i++)
	{
		float ang = i * 6.28381f / 17.0f;
		float xp = r * cosf(ang);
		float zp = r * sinf(ang);
		glVertex2f(x + xp, y + zp);
	}
	glEnd();
}